package org.performancetracker;

import org.performancetracker.api.Aggregator;
import org.performancetracker.AggregatorFactoryImpl;
import static org.mockito.Mockito.mock;

/**
 * @author: jaronschut
 */

public class AggregatorFactoryImpl {

	private static String lastAggregatorName;

	public static Aggregator createTrackerAggregator(String aggregatorName) {
		lastAggregatorName = aggregatorName;
		return mock(Aggregator.class);
	}

	public static String getLastAggregatorName() {
		return lastAggregatorName;
	}

	public static void setLastAggregatorName(String lastAggregatorName) {
		AggregatorFactoryImpl.lastAggregatorName = lastAggregatorName;
	}
}
